//implement GToyTimerImpl
//andycai_sc 2012-03-09

#include "GParallel/GToy/GToyTimerImpl.h"

GToyTimerImpl::GToyTimerImpl(GTimer* timer) : GTimerImpl(timer)
{
}

GToyTimerImpl::~GToyTimerImpl()
{
}

void GToyTimerImpl::beginImpl(long millisc)
{
	start(millisc);
}

void GToyTimerImpl::cancelImpl()
{
	canncel();
}

void GToyTimerImpl::schedule()
{
	exec();
}

GTimerImpl* createTimerFromGToy(GTimer* timer)
{
	return new GToyTimerImpl(timer);
}
